
$(document).ready(function() {
	loadCss("head",'','sites/Google Reader/reader-base.css')
	loadInterface("head","body","Google Reader")
	refreshHeight();
	$(".toggleOption").bind('click',function(){
		refreshHeight();
	})
})

function refreshHeight(){
	
	if((localStorage["reader-logosearch"] == 1) && (localStorage["reader-userbar"] == 1)){
		$("#main").css("top","0px !important")
	} else if((localStorage["reader-logosearch"] == 1) && (localStorage["reader-userbar"] == 0)){
		$("#main").css("top","23px !important")
	} else if((localStorage["reader-logosearch"] == 0) && (localStorage["reader-userbar"] == 1)){
		$("#main").css("top","40px !important")
	} else if((localStorage["reader-logosearch"] == 0) && (localStorage["reader-userbar"] == 0)){
		$("#main").css("top","65px !important")
	}	
	
}